﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace CustomControl
{
	public class MainViewModel : INotifyPropertyChanged
	{
		Dictionary<string, Page> _pages;
		public Dictionary<string, Page> Pages
		{
			get
			{
				return _pages;
			}
			set
			{
				if (_pages != value)
				{
					_pages = value;
					NotifyOfPropertyChanged("Pages");
				}
			}
		}

		public MainViewModel()
		{
			_pages = new Dictionary<string, Page>();
		}

		public event PropertyChangedEventHandler PropertyChanged;
		void NotifyOfPropertyChanged(string prop)
		{
			if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(prop)); }
		}

			
	}
}
